#include "kernel/types.h"
#include "kernel/stat.h"
#include "kernel/fcntl.h"
#include "user/user.h"

int main(int argc, char *argv[]) 
{
    if(argc <= 2) 
    { 
        printf("format: savei filename temp\n"); exit(0);
    } 
    // 根据inum读inode
    if(recover(argv[1], atoi(argv[2])) < 0){
        printf("recover error\n"); exit(0);
    }
    exit(0);
}
